package com.linchong.concurrency.chapter2.v2;

import lombok.extern.slf4j.Slf4j;

/**
 * @Author:linchong
 * @CreateTime:2019-12-31 14:56
 * @Description:
 */
@Slf4j
public class TicketWindowRunnable implements Runnable {

	private int index = 0;
	private final static int MAX = 50;


	public void run() {
		while (index < 50) {
			log.info("{} 的号码是{}", Thread.currentThread(), (index++));
		}
	}

	public static void main(String[] args) {
		System.out.println((1<<10 ));
		System.out.println((1 << 24)/1024/1024);
	}
}
